import { IResponse } from "../../Codes/Model/Share/Module/Message/IMessage";
import { TSBufferHelper } from "./TSBufferHelper";

export class SerializeHelper {

    public static Serialize(type: string, stream: Buffer) {
        return TSBufferHelper.Serialize(type, stream);
    }

    public static Deserialize(type: string, stream: Buffer) {
        return TSBufferHelper.Deserialize(type, stream);
    }

    public static WrapMessage(message: Object) {
        return TSBufferHelper.WrapMessage(message);
    }

    public static PackMessage<T extends IResponse>(clazz: typeof IResponse, message: Object): T {
        return TSBufferHelper.PackMessage(clazz, message);
    }

}